﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Threading;
using System.Diagnostics;

namespace InfoGenerateSystem.AppView
{
    static class Program
    {
        /// <summary>
        /// Main
        /// </summary>
        [STAThread]
        static void Main()
        {
            Boolean isAppRunning = false; 
            Mutex mutex = new Mutex(true, Process.GetCurrentProcess().ProcessName, out isAppRunning); 
            if (!isAppRunning) { MessageBox.Show("本程序已经在运行，请不要重复运行！"); Environment.Exit(1); }
            else
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new frmMain());
                //Application.Run(new frmTest());
                //Application.Run(new frmTestDxGrid());
            }
        }
    }
}
